Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development
Testing whether objects and fields are enabled
Your application enables and disables objects, and the fields and widgets they contain, during the course of an application session. The
ObjectEnabledandFieldsEnabledproperties let you query the current state of the objects, fields, and widgets.ObjectEnabled
This
LOGICALproperty, available for all visual SmartObjects, returnsTRUEif the object itself has been enabled, andFALSEif it has not.Normally, the framework enables every SmartObject as the application window initializes, unless the
DisableOnInitproperty has been set toTRUE. Compare this property with the similarFieldsEnabledproperty for viewers and browsers. When the framework initializes a browser or viewer, itsObjectEnabledproperty is set toTRUE. If it has no enabled columns or fields, however, or if it is inViewmode rather thanModifymode, then itsFieldsEnabledproperty isFALSE. Thus theFieldsEnabledproperty alternates back and forth betweenTRUEandFALSEdepending on the state of the window and the toolbar buttons, while theObjectEnabledproperty is normally set toTRUEonce and left that way.FieldsEnabled
This
LOGICALproperty isTRUEwhen the fields or columns of a viewer or browser are enabled for data entry, andFALSEotherwise.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |